package com.heima.wemedia.controller.v1;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmFansStatisticsDto;
import com.heima.wemedia.service.WmFansService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author lo
 * @date 2021/10/11
 */
@RestController
@RequestMapping("api/v1/statistics")
@Api("粉丝管理API")
public class WmFansContorller {
    @Autowired
    WmFansService wmFansService;


    @PostMapping("/fans")
    @ApiOperation("查询文章数量以及行为数据")
    public ResponseResult findArticle(@RequestBody WmFansStatisticsDto wmFansStatisticsDto){
       return wmFansService.findArticle(wmFansStatisticsDto);
    }


}
